ifneq ($(KERNELRELEASE),)
    # call from kernel build system
    obj-m	:= hello.o

else
	KERNELDIR ?= /lib/modules/$(shell uname -r)/build
	PWD	  := $(shell pwd)
default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

endif
